package com.sykj.test.qiaoli;

import com.sykj.App;
import com.sykj.qiaoli.bean.casea.CaseSealApplyfor;
import com.sykj.qiaoli.bean.casea.Law;
import com.sykj.qiaoli.bean.client.AddclientBean;
import com.sykj.qiaoli.service.CaseSealApplyforService;
import com.sykj.qiaoli.service.ClientService;
import com.sykj.qiaoli.service.LawService;
import org.apache.jasper.tagplugins.jstl.core.ForEach;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @program: low-office
 * @description:
 * @author: qiaoli
 * @create: 2020-05-18 18:09
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = App.class)
public class test {
    @Autowired
    CaseSealApplyforService caseSealApplyforService;
    @Autowired
    LawService lawService;
    @Autowired
    ClientService clientService;
    @Test
    public  void test(){
        Map<String,Object> map=new HashMap<>();

        List<CaseSealApplyfor> caseSealApplyfors = caseSealApplyforService.queryByCondition(null);
   for (CaseSealApplyfor caseSealApplyfor:caseSealApplyfors){
       System.err.println(caseSealApplyfor);

   }
    }

@Test
    public void test2(){
        Map<String,Object> map=new HashMap<>();
        Integer[] array={1,4,3};
    map.put("Status","Y");
    map.put("array",array);
    boolean b = lawService.updataBystatus(map);
    System.err.println(b+"      ------------------------");
}
/**
 * 功能描述: 测试用户业务功能
 * @Param: []
 * @Return: void
 * @Author: Feiwo Sicun
 * @Date: 2020/5/20 18:21
 */
@Test
    public void test3(){
    List<AddclientBean> addclientBeans = clientService.FindClient(1);
    for (AddclientBean bean: addclientBeans){
        System.err.println(bean.toString());
    }
}
}
